/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;


/**
 * 自然网格模型对比结果实体类文件表头
 *
 * @author hxloongs
 * @date 2025-01-23
 */
@Data
public class IsfdMeshCompareResultFileVo {

    @ExcelProperty(value = "对比结果类型")
    private String comparerResultType;

    @ExcelProperty(value = "卡片类型")
    private String cardName;

    @ExcelProperty(value = "对比模型文件内容")
    private String comparedContent;

    @ExcelIgnore
    private Long comparedLine;

    @ExcelProperty(value = "数据所在行数")
    private String comparedLineStr;

    public String getComparedLineStr() {
        return this.comparedLine != null ? "第" + this.comparedLine + "行" : "";
    }

    @ExcelProperty(value = "数据所在文件名称")
    private String comparedFileName;

    @ExcelProperty(value = "对比对象文件内容")
    private String referencedContent;

    @ExcelIgnore
    private Long referencedLine;

    @ExcelProperty(value = "数据所在行数")
    private String referencedLineStr;

    public String getReferencedLineStr() {
        return this.referencedLine != null ? "第" + this.referencedLine + "行" : "";
    }

    @ExcelProperty(value = "数据所在文件名称")
    private String referencedFileName;
}
